<article class="module width_full">
	<header><h3><?php  echo __('Drugs Purchased'); ?></h3></header>
	<table class="tablesorter" cellspacing="0">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>

				<th><?php echo __('Data Fabricacao'); ?></th>

				<th><?php echo __('Data Validade'); ?></th>

				<th><?php echo __('Lote'); ?></th>

				<th><?php echo __('Preco Compra'); ?></th>

				<th><?php echo __('Preco Venda'); ?></th>

				<th><?php echo __('Quantidade'); ?></th>

				<th><?php echo __('User'); ?></th>

				<th><?php echo __('Drug'); ?></th>

				<!--<th><?php echo __('Modified'); ?></th>-->

				<th><?php echo __('Created'); ?></th>

				<th><?php echo __('Actions'); ?></th>
			</tr>
		</thead>
			<tbody>
				<tr>
					<td>
						<?php echo h($drugsPurchased['DrugsPurchased']['id']); ?>
						&nbsp;
					</td>
					<td>
						<?php echo h($drugsPurchased['DrugsPurchased']['data_fabricacao']); ?>
						&nbsp;
					</td>
					<td>
						<?php echo h($drugsPurchased['DrugsPurchased']['data_validade']); ?>
						&nbsp;
					</td>
					<td>
						<?php echo h($drugsPurchased['DrugsPurchased']['lote']); ?>
						&nbsp;	
					</td>
					<td>
						<?php echo h($drugsPurchased['DrugsPurchased']['preco_compra']); ?>
						&nbsp;
					</td>
					<td>
						<?php echo h($drugsPurchased['DrugsPurchased']['preco_venda']); ?>
						&nbsp;
					</td>
					<td>
						<?php echo h($drugsPurchased['DrugsPurchased']['quantidade']); ?>
						&nbsp;
					</td>	
					<td>
						<?php echo $this->Html->link($drugsPurchased['User']['name'], array('controller' => 'users', 'action' => 'view', $drugsPurchased['User']['id'])); ?>
						&nbsp;
					</td>	
					<td>
						<?php echo $this->Html->link($drugsPurchased['Drug']['nome'], array('controller' => 'drugs', 'action' => 'view', $drugsPurchased['Drug']['id'])); ?>
						&nbsp;
					</td>
					<td>
						<?php echo h($drugsPurchased['DrugsPurchased']['created']); ?>
						&nbsp;
					</td>	
					<td class="actions">
							<a href="<?php echo $this->Html->url(array('action' => 'edit',  $drugsPurchased['DrugsPurchased']['id'])) ?>"><img src="<?php echo $this->Html->url('/html5/images/icn_edit.png') ?>" /></a>
							<?php echo html_entity_decode($this->Form->postLink("<img src=\"".$this->Html->url('/html5/images/icn_trash.png')."\" />", array('action' => 'delete',  $drugsPurchased['DrugsPurchased']['id']), null, __('Are you sure you want to delete # %s?', $drugsPurchased['DrugsPurchased']['id']))); ?>
					</td>
				</tr>
			</tbody>
		</table>
</article><!-- end of user view article -->



